CC = g++
CFLAGS = -I/usr/local/include -std=c++11
LFLAGS = -L/usr/local/lib -lglfw3 -lglew32 -lopengl32 -lgdi32 

default: cleanup rotate.o rotate1.o
	$(CC) rotate.o $(LFLAGS) -o rotate.exe
	$(CC) rotate1.o $(LFLAGS) -o rotate1.exe
	
rotate.o:
	$(CC) $(CFLAGS) -c rotate.cpp

rotate1.o:
	$(CC) $(CFLAGS) -c rotate1.cpp
	
cleanup:
	rm -f *.o
	rm -f $(TARGET)
